<template>
  <home v-if="currentRoute === 0" />
  <market v-if="currentRoute === 1" />
  <my v-if="currentRoute === 2" />
  <TabBar></TabBar>
</template>

<script setup lang="ts">
import home from '../home/index.vue'
import market from '../market/index.vue'
import my from '../my/index.vue'
import TabBar from '@/components/TabBar/index.vue'
import { storeToRefs } from 'pinia'
import { default as useCountStore } from '@/store/modules/countStore'

// 获取自定义的store
const store = useCountStore()
const { currentRoute } = storeToRefs(store)
</script>
